package com.umakr.ax.security.mapper;

import com.umakr.ax.security.model.User;
import com.umakr.ax.core.base.BaseMapper;
import com.umakr.ax.security.model.vo.UserMenuVO;
import com.umakr.ax.security.model.vo.UserVO;
import com.baomidou.mybatisplus.plugins.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author gx
 * @since 2017-04-25
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * queryUserPage
     * @param userVO
     * @return
     */
    Page<UserVO> queryUserPage(@Param("pm") UserVO userVO);

    /**
     * getUserDetailsByUserId
     * @param userId
     * @return
     */
    Map<String,Object> getUserDetailsByUserId(@Param("userId") Long userId);

    /**
     * queryUserMenu
     * @param userId
     * @return
     */
    List<UserMenuVO> queryUserMenu(Long userId);

    /**
     * queryUserMenuByAdmin
     * @return
     */
    List<UserMenuVO> queryUserMenuByAdmin();
}